package com.xbongbong.pro.contractCompare.pojo.dto;


import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.domain.entity.ext.ConditionsEntityExt;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Min;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Description:
 *
 * @Author: pkh
 * @Date: 11-18
 */
@Getter
@Setter
public class ContractCompareListDTO extends BaseDTO {

    @Getter(onMethod_ = {@QueryIgnore})
    private List<ConditionsEntityExt> conditions = new ArrayList<>();

    /**
     * 特殊列表筛选
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private JSONObject commonFilter;

    private Integer businessType;

    @Getter(onMethod_ = {@QueryIgnore})
    private String nameLike;

    /**
     * 排序字段{"field":"updateTime","sort":"acs"}
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Map<String,String> sortMap;

    /**
     * 分页当前页
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @Min(value=1, message = "{dto.msg.formDataList.page.Min}")
    private Integer page;

    /**
     * 分页每页记录数
     */
    @Getter(onMethod_ = {@QueryIgnore})
    @Min(value=1, message = "{dto.msg.formDataList.page.Min}")
    private Integer pageSize;

    private String value;

    private String attr;

    private Integer saasMark;

    private Long menuId;

}
